#include <iostream>
#include "krpc/netserver.h"
#include "krpc/service.h"

std::string echo(std::string content)
{
	std::cout << "recv size is " << content.size() << std::endl;
	return std::move(content);
}

int main(int argc, char const *argv[])
{
	using namespace KRPC;
	LSS server("unix");
	//TS server(9100);
	Service service(server);
	service.bind("echo", &echo);
	service.run();
	return 0;
}
